html {
    width: 100vw;
    height: 100vh;
}

body {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}


/* header */

#header {
    width: 10rem;
    height: 1.173333rem;
    display: flex;
    justify-content: space-between;
    background-color: orangered;
    text-align: center;
    color: #fff;
    font: .533333rem/1.173333rem "";
    font-weight: 600;
}

#header>a:nth-of-type(1) {
    position: relative;
    overflow: hidden;
    width: 1.13333rem;
    height: 100%;
}

#header>a:nth-of-type(1) {
    font: 1.086667rem/1.173333rem "";
    color: white;
}

#header>a:nth-of-type(2)>img {
    width: 1.13333rem;
    height: 100%;
}


/* nav */

#nav {
    border: .026667rem solid grey;
    display: flex;
    width: 10rem;
    height: 1.066667rem;
    align-items: center;
    justify-content: space-around;
}

#nav>div {
    width: 25%;
}

#nav>a {
    width: 10%;
    height: 80%;
    overflow: hidden;
    margin-bottom: .053333rem;
}

#nav>a>img {
    width: 5.333333rem;
}

#nav>div>span {
    font-size: .433333rem;
}

#shopNavBox {
    display: flex;
    flex-direction: column;
    display: none;
    position: absolute;
    top: 2.301333rem;
}

#shopNavBox>div {
    width: 10rem;
    height: .8rem;
    border: .026667rem solid rgb(139, 127, 127);
    text-align: center;
    box-sizing: border-box;
    font: .4rem/.8rem "";
    background: whitesmoke;
}

#areaNavBox {
    display: flex;
    flex-direction: column;
    display: none;
    /* display: block; */
    position: absolute;
    top: 2.301333rem;
}

#areaNavBox>div {
    width: 10rem;
    height: .8rem;
    border: .026667rem solid rgb(139, 127, 127);
    padding-left: .533333rem;
    box-sizing: border-box;
    font: .4rem/.8rem "";
    background: whitesmoke;
}

#main {
    flex: 1;
    width: 10rem;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    background: whitesmoke;
    align-content: flex-start;
    justify-content: space-around;
}

#main>div {
    background: white;
    display: flex;
    flex-direction: column;
    margin-left: .213333rem;
    margin-bottom: .283333rem;
}

#main>div>img {
    width: 3.133333rem;
    height: 3.133333rem;
}

#main>div>span {
    font-size: .363333rem;
    width: 4.533333rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main>div>div>span:nth-of-type(1) {
    color: red;
    font-size: .6rem;
}

#main>div>div {
    display: flex;
    justify-content: space-between;
    margin-top: .133333rem;
}

#main>div>div>a {
    height: .6rem;
    width: 1.4rem;
    background: orange;
    color: white;
    text-align: center;
    font: .4rem/.6rem "";
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: whitesmoke;
    padding-top: .333333rem;
}

#footer>div {
    width: 10rem;
    display: flex;
}

#footer>div>a {
    border: .026667rem solid #c4c4c4;
    display: block;
    text-align: center;
    font: .32rem/.8rem "";
    color: black;
}

#footer>div>a:nth-of-type(1) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(2) {
    width: 30%;
    border-right: 0;
}

#footer>div>a:nth-of-type(3) {
    width: 40%;
}

#footer>p:nth-of-type(1) {
    padding-top: .24rem;
    color: #666;
}

#footer>p:nth-of-type(1)>span:nth-of-type(1) {
    color: red;
}

#footer>p:nth-of-type(2) {
    padding-top: .24rem;
    color: #666;
}